import store from '@/store'
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  viewBtn: false,
  editBtn: false,
  delBtn: false,
  selection: true,
  searchMenuSpan: 6,
  column: [{
    type: 'input',
    label: '唯一标识',
    prop: 'id',
    hide: true,
    display: false
  }, {
    type: 'input',
    label: '线路编码不能重复',
    prop: 'lineCode',
    hide: true,
    display: false
  }, {
    type: 'input',
    label: '车站编码不能重复',
    prop: 'stationCode',
    hide: true,
    display: false
  }, {
    type: 'select',
    label: 'TVM编号',
    prop: 'tvmCode',
    dicUrl:'/support/swpmtvmcode/page',
    props: {
      label: 'tvmCode',
      value: 'tvmCode',
      res:'data.records'
    },
	dicQuery: {
		size: -1,
		stationCode: store.getters.userInfo.stationCode,
		status: '1'
	},
    search: true
  }, {
    type: 'input',
    label: '结算开始周期',
    prop: 'sellStartTime'
  }, {
    type: 'input',
    label: '结算截止周期',
    prop: 'sellEndTime'
  }, {
    type: 'date',
    label: '结账日期',
    prop: 'settlementTime',
    search: true,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd'
  }, {
    type: 'number',
    label: '现金实收金额',
    prop: 'cashReceiptAmount',
	precision: 2
  }, {
    type: 'input',
    label: '客运值班员',
    prop: 'passengerAttendantName',
    search: true,
    searchLabelWidth: 100
  }, {
    type: 'input',
    label: '客运值班员工号',
    prop: 'passengerAttendantJobNo'
  }, {
    type: 'input',
    label: '客运值班员ID',
    prop: 'passengerAttendantId',
    hide: true
  }, {
    type: 'input',
    label: '值班站长',
    prop: 'attendancePersonName'
  }, {
    type: 'input',
    label: '值班站长工号',
    prop: 'attendancePersonJobNo'
  }, {
    type: 'input',
    label: '值班人员Id',
    prop: 'attendancePersonId',
    hide: true
  }, {
    type: 'input',
    label: '提交状态',
    prop: 'approvalStatus',
    hide: true
  }, {
    type: 'input',
    label: '备注',
    prop: 'remark',
    hide: true
  }, {
    type: 'input',
    label: '部门ID',
    prop: 'deptId',
    hide: true,
    display: false
  }, {
    type: 'input',
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false
  }, {
    type: 'input',
    label: '创建时间',
    prop: 'createTime',
    hide: true,
    display: false
  }, {
    type: 'input',
    label: '数据更新时间',
    prop: 'updateTime',
    hide: true,
    display: false
  }]
}
